<?php
	require_once(dirname(__FILE__)."/include/blog_list_display_data.php");
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh" xml:lang="zh">
<head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<title>湖南科技大学ACM</title>
	<link rel="stylesheet" type="text/css" href="css/common.css" />
	<script type="text/javascript" src="./js/search.js"></script>
</head>
<body style="background-color:white">
	<table align="center" style="width:<?php echo $width;?>
		" border="0">
		<tr>
			<td> <?php require_once("header.php");?> </td>
		</tr>
		<tr>
			<td >
				<table align="center" style="width:95%; padding:30px 0px 0px 20px;background-color:#ffffff;" border="0">
					<tr>
						<td style="padding-bottom: 10px">
							<div class="blog_header">
								<div style="float:left">
									<img src="./skins/blog_logo.gif" atl="logo" />
								</div>
								<div style="float:left;padding-top:5px;padding-left:5px">
									欢迎来到解题报告系统
								</div>
								<div style="float:right; width:450px">
									<form>
										<input type="text" class="search_input"  value="<?php if (isset($search)) echo $search; else echo ' 标题|作者|关键字|年月(如2014-01)' ?>" onblur="killfocus()" onfocus="setfocus()" id="keyword" />
										<input type="submit" value="快速检索" class="btn" onclick="query();return false;" />
										<input type="button" value="添加解题" class="btn" onclick="javascript:window.location='./blog_add_page.php';"/>
									</form>
								</div>
							</div>
						</td>
					</tr>
					<tr>
						<td >
							<div class="blog_content">
								<table style="width:100%; text-align:center; padding: 0px 0px 0px 0px;">
									<tr style="height:30px; background-color: #dddddd">
										<th style="text-align:left;padding-left:20px">标题</th>
										<th>作者</th>
										<th>关键字</th>
										<th>发表时间</th>
									</tr>
									<tr style="height:10px;">
										<td colspan="4"> </td>
									</tr>
									<?php
										foreach($PageArray["bloglist"] as $Object){ 
									?>
									<tr style="height:25px">
										<td style="text-align:left;padding:5px 0px 0px 20px">
											<a href="blog_display.php?bid=<?php echo $Object->id; ?>"><?php echo $Object->title; ?></a>
										</td>
										<td>
											<a href="userinfo.php?user=<?php echo $Object->user; ?>"><?php echo $Object->user; ?> </a>
										</td>
										<td>
											<?php echo $Object->keyword; ?>
										</td>
										<td>
											<?php echo $Object->in_time; ?>
										</td>
									</tr>
									<?php 
									}
									?>
								</table>
							</div>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td style="padding-top:50px">
				<?php require_once("footer.php") ?></td>
		</tr>
	</table>
</body>
</html>